package com.qinhai.webcs.service.impl;

import com.alipay.api.AlipayApiException;
import com.qinhai.webcs.config.Alipay;
import com.qinhai.webcs.pojo.AlipayBean;
import com.qinhai.webcs.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName PayServiceImpl
 * @Deacription
 * @Author qinhai
 * @Date 2021/4/16 21:35
 * @Version 1.0
 **/
@Service()
public class PayServiceImpl implements PayService {

    @Autowired
    Alipay alipay;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }
}
